const express = require('express')

const router = express.Router()

const {getinfo, login, register} = require('../../../controller/user')

const checkToken = require('../../../middleware/checkToken')

// 用户表相关请求就在这里处理
router.get('/getinfo/:userId', checkToken, getinfo)

router.post('/login', login)

router.post('/register', register)

module.exports = router